<!--试卷统计组件-->
<template>
  <div>
    <h1 class="el-icon-s-data">答题卡</h1>
    <div style="padding: 0 10px">
      <el-tag @click="handleClick(index)" v-for="index in count" :type="questionResults[index] && questionResults[index].finished ? 'success' : 'info'" class="z-tab"><a :href="'#question_'+index">{{ index }}</a>
      </el-tag>
    </div>
  </div>
</template>

<script>
export default {
  name: "statistics",
  props: {
    questionResults: {
      type: Object,
      required: true,
    },
    count: {
      type: Number,
      required: true,
    }
  },
  watch: {
  },
  methods:{
    handleClick(){

    }
  }
}
</script>

<style scoped>
.z-tab{
  width: 40px;
  text-align: center;
}
</style>
